
// ignore_for_file: non_constant_identifier_names

class HistoryConversionItem {
  String? id;
  String? name;
  Map<String,dynamic>? inputs;
  String? status;
  String? introduction;
  int? created_at;

  HistoryConversionItem({this.id, this.name, this.inputs, this.status,
      this.introduction, this.created_at});

  Map<String, dynamic> toJson() {
    return {
      "id": id,
      "name": name,
      "inputs": inputs,
      "status": status,
      "introduction": introduction,
      "created_at": created_at,
    };
  }

  factory HistoryConversionItem.fromJson(Map<String, dynamic> json) {
    return HistoryConversionItem(
      id: json["id"],
      name: json["name"],
      inputs: json["inputs"],
      status: json["status"],
      introduction: json["introduction"],
      created_at: json["created_at"],
    );
  }

}


class HistoryConversionsModel {
  int? limit;
  bool? has_more;
  List<HistoryConversionItem>? data;

  HistoryConversionsModel({this.limit, this.has_more, this.data});

  Map<String, dynamic> toJson() {
    return {
      "limit": this.limit,
      "has_more": this.has_more,
      "data": this.data?.map((e) => e.toJson()).toList(),
    };
  }

  factory HistoryConversionsModel.fromJson(Map<String, dynamic> json) {
    List<HistoryConversionItem>? data;
    if (json['data'] != null){
      data = [];
      for(var e in json['data']){
        data.add(HistoryConversionItem.fromJson(e));
      }
    }


    return HistoryConversionsModel(
      limit: json["limit"],
      has_more: json["has_more"],
      data: data,
    );
  }

}
